import request from '@/utils/request'

// 查询用户会员列表
export function listUserMembership(query) {
  return request({
    url: '/qywechat/userMembership/list',
    method: 'get',
    params: query
  })
}

// 查询用户会员详细
export function getUserMembership(id) {
  return request({
    url: '/qywechat/userMembership/' + id,
    method: 'get'
  })
}

// 新增用户会员
export function addUserMembership(data) {
  return request({
    url: '/qywechat/userMembership',
    method: 'post',
    data: data
  })
}

// 修改用户会员
export function updateUserMembership(data) {
  return request({
    url: '/qywechat/userMembership',
    method: 'put',
    data: data
  })
}

// 删除用户会员
export function delUserMembership(id) {
  return request({
    url: '/qywechat/userMembership/' + id,
    method: 'delete'
  })
}
